import Login from '../views/Login/Login.vue'
import Main from '../views/Main.vue'
import Home from '../views/Home/Home.vue' //首页
import ActivityList from '../views/Activity/ActivityList.vue' //活动列表Page
import ArticleHot from '../views/Activity/ArticleHot.vue' //文章热度统计Page

const routes = [{
        path: "/",
        redirect: '/login'
    },
    {
        path: "/login",
        name: 'login',
        component: Login,
        meta: { title: '登录' }
    },
    {
        path: "/main",
        name: 'main',
        component: Main,
        meta: { title: 'layout' },
        redirect: '/main/ActivityList',
        children: [{
            path: "/main/home",
            name: "home",
            component: Home,
            meta: { title: '首页' }
        }, {
            path: "/main/ArticleHot",
            name: "article_hot",
            component: ArticleHot,
            meta: { title: '文章热度统计' }
        }, {
            path: "/main/ActivityList",
            name: "activity_list",
            component: ActivityList,
            meta: { title: '活动列表' }
        }]
    },

]

export default routes